package org.cx.util;

import java.util.Map;

public class StringUtil {
	
	/**
	 * map转str
	 */
	public static String getMapToStr(Map map) {
		if(map != null && map.size() > 0){
			StringBuilder sb = new StringBuilder();
			 for (Object key : map.keySet()) {
				 sb.append("&key="+ key + "--value=" + map.get(key));
			 }
			return sb.toString();
		}
		return "";
	}

}